﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectSem3.admin
{
    public partial class WebForm15 : System.Web.UI.Page
    {
        private DataClasses1DataContext dc = new DataClasses1DataContext();
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void buttonRegistrar_Click(object sender, EventArgs e)
        {
            AdminLogin ad = new AdminLogin();
            ad.username = this.username.Value;
            ad.password = this.Password.Value;
            ad.pemision = 2 ;
            dc.AdminLogins.InsertOnSubmit(ad);
            dc.SubmitChanges();
        }
    }
}